package cn.ibdsr.human.warpper;

import cn.ibdsr.human.common.factory.ConstantFactory;
import cn.ibdsr.human.constant.GenderEnum;
import cn.ibdsr.human.constant.JwtConstants;

import java.util.Map;

public class CompanyResponseWarpper extends BaseControllerWarpper {
    private  Boolean IS_NULL=false;
    public CompanyResponseWarpper(Object obj,Boolean is_null) {
        super(obj);
        this.IS_NULL=is_null;
    }

    @Override
    protected void warpTheMap(Map<String, Object> var1) {

        if( var1.get("proper")==null){
            var1.put("properDes",this.IS_NULL?null: JwtConstants.NO_LIMIT);
        }else {
            var1.put("properDes", ConstantFactory.me().getCompanyProper(
                    Integer.valueOf((Integer) var1.get("proper")),this.IS_NULL
            ));
        }


    }
}
